#ifndef __PWM_H__
#define __PWM_H__
#include "pulpino.h"

void set_period(unsigned int period); //设置周期
void set_pulse(unsigned int pulse); //设置占空比    
void set_size(unsigned int size);   //设置输出管脚号
void set_enable(unsigned int enable); //设置使能

unsigned int get_period(); //获取周期设定值
unsigned int get_pulse(); //获取占空比设定值
unsigned int get_size(); //获取输出管脚号设定值
unsigned int get_enable(); //获取使能设定值

#endif